package com.chexiehui.jc.entity;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

/**
 * 帖子信息
 */
public class PostInfo implements Serializable {

    private String Id;
    private String AuthorId;
    private String AuthorName;
    private String AuthorRemark;
    private String AuthorPhoto;
    private String ForumsId;
    private String ForumsName;
    private String ForumsIcon;
    private String Title;
    private String Content;
    private int Likenum;
    private int Viewnum;
    private int CommentNum;
    private int CollectionNum;
    private String CreateTime;
    private String PostType;
    private BigDecimal Distance;

    private String SeriesId;// (string, optional): 帖子关联车系id ,
    private String SeriesName;// (string, optional): 帖子关联车系名称 ,
    private String FollowCount;// (string, optional): 帖子关联车系关注人数 ,
    private boolean IsFollow; //(boolean, optional): 是否已关注 true是 false否 ,
    private boolean IsCollection; //(boolean, optional): 是否已收藏 true是 false否 ,
    private List<String> PhotoList;// (Array[string], optional): 图片
    private boolean IsLike;

    private String Label;

    public String getId() {
        return Id == null ? "" : Id;
    }

    public void setId(String id) {
        Id = id;
    }

    public String getAuthorId() {
        return AuthorId == null ? "" : AuthorId;
    }

    public void setAuthorId(String authorId) {
        AuthorId = authorId;
    }

    public String getAuthorName() {
        return AuthorName == null ? "" : AuthorName;
    }

    public void setAuthorName(String authorName) {
        AuthorName = authorName;
    }

    public String getAuthorRemark() {
        return AuthorRemark == null ? "" : AuthorRemark;
    }

    public void setAuthorRemark(String authorRemark) {
        AuthorRemark = authorRemark;
    }

    public String getAuthorPhoto() {
        return AuthorPhoto == null ? "" : AuthorPhoto;
    }

    public void setAuthorPhoto(String authorPhoto) {
        AuthorPhoto = authorPhoto;
    }

    public String getForumsId() {
        return ForumsId == null ? "" : ForumsId;
    }

    public void setForumsId(String forumsId) {
        ForumsId = forumsId;
    }

    public String getForumsName() {
        return ForumsName == null ? "" : ForumsName;
    }

    public void setForumsName(String forumsName) {
        ForumsName = forumsName;
    }

    public String getForumsIcon() {
        return ForumsIcon == null ? "" : ForumsIcon;
    }

    public void setForumsIcon(String forumsIcon) {
        ForumsIcon = forumsIcon;
    }

    public String getTitle() {
        return Title == null ? "" : Title;
    }

    public void setTitle(String title) {
        Title = title;
    }

    public String getContent() {
        return Content == null ? "" : Content;
    }

    public void setContent(String content) {
        Content = content;
    }

    public int getLikenum() {
        return Likenum;
    }

    public void setLikenum(int likenum) {
        Likenum = likenum;
    }

    public int getViewnum() {
        return Viewnum;
    }

    public void setViewnum(int viewnum) {
        Viewnum = viewnum;
    }

    public int getCommentNum() {
        return CommentNum;
    }

    public void setCommentNum(int commentNum) {
        CommentNum = commentNum;
    }

    public int getCollectionNum() {
        return CollectionNum;
    }

    public void setCollectionNum(int collectionNum) {
        CollectionNum = collectionNum;
    }

    public String getCreateTime() {
        return CreateTime == null ? "" : CreateTime;
    }

    public void setCreateTime(String createTime) {
        CreateTime = createTime;
    }

    public String getPostType() {
        return PostType == null ? "" : PostType;
    }

    public void setPostType(String postType) {
        PostType = postType;
    }

    public BigDecimal getDistance() {
        return Distance == null ? BigDecimal.ZERO : Distance;
    }

    public String getDistanceStr() {
        return getDistance().doubleValue() + "km";
    }

    public void setDistance(BigDecimal distance) {
        Distance = distance;
    }

    public String getSeriesId() {
        return SeriesId == null ? "" : SeriesId;
    }

    public void setSeriesId(String seriesId) {
        SeriesId = seriesId;
    }

    public String getSeriesName() {
        return SeriesName == null ? "" : SeriesName;
    }

    public void setSeriesName(String seriesName) {
        SeriesName = seriesName;
    }

    public String getFollowCount() {
        return FollowCount == null ? "" : FollowCount;
    }

    public void setFollowCount(String followCount) {
        FollowCount = followCount;
    }

    public boolean isFollow() {
        return IsFollow;
    }

    public void setFollow(boolean follow) {
        IsFollow = follow;
    }

    public boolean isCollection() {
        return IsCollection;
    }

    public void setCollection(boolean collection) {
        IsCollection = collection;
    }

    public List<String> getPhotoList() {
        return PhotoList == null ? PhotoList = new ArrayList<>() : PhotoList;
    }

    public void setPhotoList(List<String> photoList) {
        PhotoList = photoList;
    }

    public boolean isLike() {
        return IsLike;
    }

    public void setLike(boolean like) {
        IsLike = like;
    }

    public String getLabel() {
        return Label == null ? "" : Label;
    }

    public void setLabel(String label) {
        Label = label;
    }
}
